import { getRoute } from '@/utils/computedRoutes'
const getters = {
	isCollapse: state => state.common.isCollapse,
	tabsList: state => state.common.tabsList,
	sideMenuList: state => state.common.sideMenuList,
	defaultActive: state => state.common.defaultActive,
	bgColor: state => state.common.bgColor,
	accentColour: state => state.common.accentColour,
	userMsg: state => state.user.userMsg,
	cacheViews: state => state.common.cacheViews,
	addRoutes: state => state.router.addRoutes,
	hasgetRoutes: state => state.router.hasgetRoutes,
	size: state => state.common.size,
	isCacheViews: state => state.common.isCacheViews,
	isOpenTabbar: state => state.common.isOpenTabbar,
	rightLineX: state =>
		!state.common.isCollapse ? state.common.rightLineX : '64px',
	curFormInfo: state => state.common.curFormInfo,
	curScreenInfo: state => state.common.curScreenInfo,
	curRoute: state =>
		getRoute(state.common.defaultActive, state.common.sideMenuList),
	formDialogOpen: state => state.formDialog.open,
	formDialogTitle: state => state.formDialog.title,
	formJsonId: state => state.formDialog.formJsonId,
}
export default getters
